package cn.edu.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.ssm.dao.MediaMapper;
import cn.edu.ssm.entity.Media;
import cn.edu.ssm.entity.Type;
import cn.edu.ssm.service.MediaService;
@Service
public class MediaServiceImpl implements MediaService {
	@Autowired
private MediaMapper mediaMapper;

	@Override
	public List<Media> getMediaList() {
		return mediaMapper.getMediaList();
	}

	@Override
	public boolean delete(String mediaid) {
		
		return mediaMapper.delete(mediaid);
	}

	@Override
	public Media findById(String mediaid) {
		
		return mediaMapper.findById(mediaid);
	}


	@Override
	public int saveFile(Media media) {
		return mediaMapper.saveFile(media);
	}

	@Override
	public int uploadMedia(Media media) {
		return mediaMapper.uploadMedia(media);
	}

	@Override
	public int addmanager(Media media) {
		return mediaMapper.addmanager(media);
	}

	@Override
	public int updateTypeName(Type type) {
		return mediaMapper.updateTypeName(type);
	}



}
